package org.xm.sk.vo.ob;

import org.xm.sk.vo.tb.Shop;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ModelShop {

    Shop shop;
    
    Double distance;
    
    public ModelShop(Shop shop, Double distance) {
        this.shop = shop;
        this.distance = Double.parseDouble(String.format("%.2f", distance));
    }
    
    public void setDistance(Double distance) {
        this.distance = Double.parseDouble(String.format("%.2f", distance));
    }

}
